package shop.services.manage.offlineAccount.dao.impl;

import org.springframework.stereotype.Repository;
import shop.core.common.dao.BaseDao;
import shop.core.common.dao.page.PagerModel;
import shop.services.manage.offlineAccount.bean.OfflineAccount;
import shop.services.manage.offlineAccount.dao.OfflineAccountDao;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by wzl on 2017/7/21.
 */
@Repository("offlineAccountDaoManage")
public class OfflineAccountDaoImpl implements OfflineAccountDao {
    @Resource
    private BaseDao dao;

    public void setDao(BaseDao dao) {
        this.dao = dao;
    }

    @Override
    public int insert(OfflineAccount offlineAccount) {
        return 0;
    }

    @Override
    public int delete(OfflineAccount offlineAccount) {
        return 0;
    }

    @Override
    public int update(OfflineAccount offlineAccount) {
        return 0;
    }

    @Override
    public OfflineAccount selectOne(OfflineAccount offlineAccount) {
        return null;
    }

    @Override
    public PagerModel selectPageList(OfflineAccount offlineAccount) {
        return dao.selectPageList("manage.offlineAccount.selectPageList",
                "manage.offlineAccount.selectPageCount", offlineAccount);
    }

    @Override
    public PagerModel selectAdminPageList(OfflineAccount offlineAccount) {
        return dao.selectPageList("manage.offlineAccount.selectAdminPageList",
                "manage.offlineAccount.selectPageCount", offlineAccount);
    }

    @Override
    public List<OfflineAccount> selectList(OfflineAccount offlineAccount) {
        return null;
    }

    @Override
    public int deleteById(int id) {
        return 0;
    }

    @Override
    public OfflineAccount selectById(String id) {
        return null;
    }
}
